import http from "@/api/httpApi/base/http.js";
//获取订单列表

export const getOrderList = (page = 1, size = 10, projectId = "", categoryId = "", state = "", keyword = "", startTime = null, endTime = null, userId = "") => {
    return http.requestGet("/admin/order/list/" + page + "/" + size + "?projectId=" + projectId + "&categoryId=" + categoryId + "&keyword=" + keyword + "&startTime=" + startTime + "&endTime=" + endTime + "&state=" + state + "&userId=" + userId);
};
//重新发货
export const reSendApi = (orderFrom) => {
    return http.requestPost("/portal/order/reSend", orderFrom);
};
//删除订单或者购物车内容
export const delListApi = (ids) => {
    return http.requestDeleteArr("/admin/order", "ids", ids);
};